package com.bawei.park2211a.fg.notice

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.MessgaeEntity
import com.bawei.base.bean.NoticeEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class NoticeViewModel @Inject constructor(var apiService: ApiService) :BaseViewModel(){
    var noticrSuccess=MutableLiveData<MutableList<NoticeEntity>>()
    fun notice( page:Int,size:Int){
        httpRequest({apiService.notice(page,size)},{noticrSuccess.postValue(it)})
    }
}